home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Nov 90 / MacApp.Tech$ 11⁄23⁄90 / 2415-Re ? Want only 1 doc-Nov90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1023 b   |  26 lines  |  [TEXT/GEOL]

  1. Item    4455368                         23-Nov-90        06:47PST
  2.  
  3. From:   CFI                             France - CFI Paris 11,IDV
  4.  
  5. To:     PHS                             Pinyon Hills Software, Schwartz,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re: ? Want only 1 document…
  10.  
  11. The methods that create documents are the DoMakeDocument Methods.
  12. The methods that call DoMakeDocument are the DoMenuCommand methods. You should
  13. ovveride the TApplication.DoMenuCommand method so that it checks if a document
  14. is already opened before is calls the DoMakeDocument method.
  15. I believe you should check for the cNewDocument command in the
  16. TApplication.DoMenuCommand method and do something like in pseudocode:
  17. if ((actualCommand = cNewDocument) AND (ThereisNOTadocument)) OR (actualCommand
  18. <> cNewDocument) THEN
  19.     INHERITED DoMenucommand;
  20.  
  21. in that case if there is no document yet, or if it's another command, will the
  22. inherited domenucommand will be called.
  23.  
  24.                              Nico...
  25.  
  26.